home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
- ZIPSORCE
-
- Zip Source files
-
- Copyright (c) 1990, 1991, 1992
- Transversal Design
-
-
-
-
-
-
-
-
-
-
- Transversal Design
- PO Box 66082
- Chicago, IL 60666-0082
- Beeper: (312) 999-0745 (digital)
-
-
-
-
-
-
-
-
- 071590
- First Things First:
-
- Please take the time to read the License, Warranty and Registration
- information. If you have received this file without printed documentation,
- this information is contained in the file named LICENSE.DOC.
-
- The information contained in this file/pamphlet outlines copyright
- information, licensing agreement, warranty, technical support policies and
- additional information about registering your software. It also includes
- descriptions of other programs by Transversal Design in which you might be
- interested. Please take the time to read this information to be sure you
- understand your rights and the expectations/guidelines of Transversal Design.
- ZIPSORCE
-
- ZipSorce came about one day while working on a program with over 45,000 lines
- of code in it. It started getting very difficult to maintain an adequate
- backup of JUST the program code. We wrote ZipSorce to step through a Pascal
- source file, determine which units it used and any include files, then create
- a batch file of these file names and shell out to PKZIP to make our backup.
- We then added the ability to include non-source files in the zipping.
-
- ZipSorce is intended to be used as a zipping/backup utility for Pascal
- programmers. Future versions may include compatibility for C and assembly
- programmers. We use it to maintain complete-version zip files for archive
- purposes, and also to create distribution files (see below).
-
-
-
- Prior Knowledge/Limitations
-
- It is assumed that the user is reasonably familiar with PKZIP and has a copy
- of it in their default path. It is also assumed that this copy of PKZIP is a
- registered copy. If you are using it, please register it. Enough soap
- boxing.
-
- Further assumptions are that the user is familiar with DOS, entering commands
- into the computer, and entering parameters on the command line for programs.
-
- ZipSorce uses the heap for a lot of its manipulations. It should run on any
- IBM or compatible. It is assumed that the user has at least 512k, although
- this is not a requirement of the program. The EXE file is about 20k, leaving
- the rest of memory for the manipulations and PKZIP. Any computer which will
- run PKZIP should be able to run ZipSorce.
-
- NOTE: ZipSorce has not been tested on any networks. Feedback is desired (in
- writing please) from any users with access to networks.
-
-
-
- Usage
-
- For those users who are fairly familiar with command-line driven programs such
- as PKZIP, the usage should be fairly straight-forward. The command line is:
-
- ZIPSORCE sourcefilename [/T] [/H|/?] [/L] ["zip parms"] where:
- sourcefilename = file to process.
- /H or /? = show help only.
- /T = include TPU files.
- /L = show (log) files which will be processed.
- ["zip parms"] = parameters to pass to PKZIP.
-
- ZipSorce is not case-sensitive. The parameters may be entered in any order.
- The quotes ( " ) must be included surrounding the parameters to pass to PKZIP.
- The parameters are passed to PKZIP EXACTLY as entered, with no conversions
- other than to remove the quotes.
- /T may be used to force the inclusion of TPU files with the source code. /L
- will show the files which would be included in the zipping without actually
- calling PKZIP.
-
- All output may be redirected using standard DOS conventions.
-
-
-
- What It Does:
-
- ZipSorce will step through the specified source file line by line and make
- decisions regarding whether or not there is a file to be included. All
- remarks within a file are ignored since the compiler would ignore them also.
- Any USES directive will queue the file for inclusion, up to the terminating
- semi-colon (it does not have to be on the same line). If the /T option is
- specified, the TPU file will be queued also. Any files to be included with
- the {$I compiler directive will also be queued, without a corresponding TPU
- file. A special comment, starting with {ZIPSOURCE INCLUDE: ....} will include
- any files held within the comment.
-
- All files, other than those specified with ZIPSOURCE INCLUDE:, will be read
- after the source file is finished, and processed one at a time in the same
- fashion. ZIPSOURCE INCLUDE: may also be used in these "sub-files".
-
- After all files are processed, ZipSorce will determine where PKZIP is at on
- your drive, create the batch file to be used with the @ directive, then shell
- out to PKZIP to create the zip file. The zip file will have the same name as
- the source file (with the extension of ZIP instead of PAS).
-
- That's pretty much all there is to it. One final note about processing...
- sometimes a TPU file will exist without a PAS file. This may be because of a
- company distributing only compiled code (without source), or for other
- reasons. ZipSorce will ALWAYS include the TPU file if the PAS unit is not
- found.
-
-
-
- Of Interest:
-
- It was mentioned earlier that we use ZipSorce for distribution files.
- Specifically, we created two files before ZipSorce was uploaded, one was
- ZIPSORCE.SDT (for source data) and another called ZIPSORCE.DDT (for
- distributed data). Both files were simply ZIPSORCE INCLUDE files. You should
- have downloaded ZIPSORCE.DDT with this file. Take a moment to look at it.
- Although ZipSorce adds the .PAS extension to the source file if it is not
- entered, it will process any file if the extension is specified.
-
- We created the distribution file with the following command:
-
- ZIPSORCE ZIPSORCE.DDT <Enter>
- After ZipSorce completed the zipping, we copied ZIPSORCE.ZIP to our upload
- directory, erased it, then made a backup of the source code with:
-
- ZIPSORCE ZIPSORCE.SDT <Enter>
-
- A WORD OF CAUTION: PKZIP will not overwrite zip files which exist, but will
- add or update to them. This is good, it keeps you from losing zip files.
- BUT, in the use of ZipSorce in the above example, since all of the data files
- (.DDT and .SDT) contain the same main file name, the zip file MUST be copied
- to another directory then erased to avoid including files which you had not
- intended. In the above example, without this step, we would have
- inadvertently added source code to the distributed files.
-
-
- An example with parameters for PKZIP:
-
- ZIPSORCE SOURCE.PAS /T "-m"
-
- This would step through SOURCE.PAS, determine files to include, include the
- TPU files and call PKZIP to zip the files, then erase them from the drive (the
- -m move directive).
-
- This should be sufficient documentation to get you started. Please take the
- time to read the file LICENSE.DOC. Happy Zipping!
- PKZIP is a registered trademark of PK Ware, Inc. For more information
- regarding PKZIP, contact:
- PK Ware, Inc.
- 7545 North Port Washington Road
- Suite 205
- Glendale, WI 53217
- (414) 352-3670
-
- The inclusion of these product names in this documentation is no indication
- whatsoever that the respective companies have used or endorse this product.
-
-
- ----------------end-of-author's-documentation---------------
-
- Software Library Information:
-
- This disk copy provided as a service of
-
- Public (software) Library
-
- We are not the authors of this program, nor are we associated
- with the author in any way other than as a distributor of the
- program in accordance with the author's terms of distribution.
-
- Please direct shareware payments and specific questions about
- this program to the author of the program, whose name appears
- elsewhere in this documentation. If you have trouble getting
- in touch with the author, we will do whatever we can to help
- you with your questions. All programs have been tested and do
- run. To report problems, please use the form that is in the
- file PROBLEM.DOC on many of our disks or in other written for-
- mat with screen printouts, if possible. PsL cannot debug pro-
- programs over the telephone, though we can answer questions.
-
- Disks in the PsL are updated monthly, so if you did not get
- this disk directly from the PsL, you should be aware that the
- files in this set may no longer be the current versions. Also,
- if you got this disk from another vendor and are having prob-
- lems, be aware that some files may have become corrupted or
- lost by that vendor. Get a current, working disk from PsL.
-
- For a copy of the latest monthly software library newsletter
- and a list of the 2,000+ disks in the library, call or write
-
- Public (software) Library
- P.O.Box 35705 - F
- Houston, TX 77235-5705
-
- 1-800-2424-PSL
- MC/Visa/AmEx
-
- Outside of U.S. or in Texas
- or for general information,
- Call 1-713-524-6394
-
- PsL also has an outstanding
- catalog for the Macintosh.
-